

if __name__ == '__main__':
    f = open("rb.txt", encoding='utf-8')
    lines = f.readlines()
    f.close()
    print(len(lines))
    for line in lines:
        # print(line)
        rs = line.rstrip('\n')
        newname = rs.replace(rs, rs+" "+'O')
        newfile = open("rb.txt", 'a', encoding='utf-8')
        newfile.write(newname+'\n')
        newfile.close()
